package com.spark.sniffer.plugin.plugins.interceptor;

import net.bytebuddy.asm.Advice;

import java.lang.reflect.Method;

import static net.bytebuddy.implementation.bytecode.assign.Assigner.Typing.DYNAMIC;

/**
 * Description: 请描述你的文件
 *
 * @author wuqirong
 * @date 2021-08-02
 * <p>
 * All rights Reserved, Designed www.xiao100.com
 */
public class ObjectConstructInterceptor {

    @Advice.OnMethodEnter
    public static void before(@Advice.AllArguments Object[] allArguments) {
        System.out.println("ObjectConstructInterceptor");
        System.out.println(allArguments);
    }

    @Advice.OnMethodExit
    public static void after(@Advice.This Object instance, @Advice.AllArguments Object[] allArguments) {
        System.out.println(allArguments);
        System.out.println(instance);
    }


}
